package com.vincce.sport.mapper;

import java.util.List;
import java.util.Map;

import com.vincce.sport.core.MyBatisRepository;
import com.vincce.sport.entity.MatchTaskEntity;
import com.vincce.sport.entity.PreliminaryContest;

@MyBatisRepository
public interface MatchTaskMapper {

	long checkMatchTask(Map<String, Object> map);

	long insert(MatchTaskEntity matchTaskEntity);

	long update(MatchTaskEntity matchTaskEntity);

	long delete();

	List<PreliminaryContest> queryDateGroup(Map<String, Object> map);

	List<PreliminaryContest> findPreliminaryBy4Condition(Map<String, Object> map);

    /**
     * 根据赛程ID 查出赛程对象
     * @param machId
     * @return
     */
    MatchTaskEntity findByMachId(Integer machId);

}
